<!DOCTYPE HTML>
<meta charset="UTF-8">
<div id="mCJp001" ng-controller="cP001">

	<div class="moduleHeader">
		<h4>Kullanıcı Tanımlama</h4>
	</div>
	<hr>


	<div class="panel panel-default">
		<table class="table">
			<tr class="active">
				<td class="DV_table_field">Seç</td>
				<td class="DV_table_field">Kullanıcı Adı</td>
				<td class="DV_table_field">Ad</td>
				<td class="DV_table_field">Soyad</td>
				<td class="DV_table_field">Oluşturan Kullanıcı</td>
				<td class="DV_table_field">Oluşturulma Tarihi</td>
			</tr>
			<tbody ng:repeat="user in userList">
				<tr ng-class="{'info': user == selectedUser}" ng-click="setUserSelected();">
					<td><input type="checkbox" ng-model="userListVal[$index]"></td>
					<td class="DV_table_field">{{user.username}}</td>
					<td class="DV_table_field">{{user.firstName}}</td>
					<td class="DV_table_field">{{user.lastName}}</td>
					<td class="DV_table_field">{{user.createdBy}}</td>
					<td class="DV_table_field">{{user.createdDate}}</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div>
		<div class="P001_user_info">
			<form class="form-horizontal" role="form">
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-4 control-label">Kullanıcı Adı</label>
					<div class="col-sm-6">
						<input type="text" ng-model="p001_username" class="form-control" id="p001_inp_username" placeholder="Kullanıcı Adı">
					</div>
				</div>
				<div class="form-group">
					<label for="p001_inp_firstName" class="col-sm-4 control-label">Ad</label>
					<div class="col-sm-6">
						<input type="text" ng-model="p001_firstName" class="form-control" id="p001_inp_firstName" placeholder="Ad">
					</div>
				</div>
				<div class="form-group">
					<label for="p001_inp_lastName" class="col-sm-4 control-label">Soyad</label>
					<div class="col-sm-6">
						<input type="text" ng-model="p001_lastName" class="form-control" id="p001_inp_lastName" placeholder="Ad">
					</div>
				</div>
				<div class="form-group">
					<label for="p001_role_table" class="col-sm-4 control-label">Roller</label>
					<div class="col-sm-6">
						<div class="panel panel-default">
							<table id="p001_role_table" class="table">
								<tr class="active">
									<td class="DV_table_field">Seç</td>
									<td class="DV_table_field">Role Adı</td>
								</tr>
								<tbody ng:repeat="privilege in privilegeList">
									<tr ng-class="{'info': contains(selectedPrivileges, privilege)}" ng-click="setPrivilegeSelected();">
										<td><input type="checkbox" ng-model="privilegeListVal[$index]"></td>
										<td class="DV_table_field">{{privilege.name}}</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>

			</form>
		</div>
	</div>
</div>
